import http from './http'
import server from 'config/server'

export default {

  /**
   * 申请应用接口调用凭证
   * @param  {String} id App标识ID
   */
  getAppToKen (params, AccessToken) {
    return http.post(
      `${server.host}/v2/plugin/apply_token`, JSON.stringify(params), {
        headers: {
          'Content-Type': 'application/x-www-form-urlencoded',
          'Access-Token': AccessToken
        }
      }
    )
  }
}
